from django.contrib import admin
from django.urls import path
from . import views

app_name = 'author'
urlpatterns = [
    path('', views.user_login, name='index'),  # 修改为views.index作为首页

    path('register/', views.register, name='register'),
    path('login/', views.user_login, name='login'),
    path('admin/index', views.admin_index, name='admin_index'),  # 管理员首页
    path('company/index', views.company_index, name='company_index'),  # 企业用户首页
    path('logout/', views.user_logout, name='logout'),
    path('student/index', views.index, name='student_index'),  # 学生用户首页
  ]

